<!DOCTYPE html>
<html lang="en">

<head>
	<meta charset="UTF-8"/>
	<meta name="keywords" content="count, characters, advanced character count,"/>
	<link rel="stylesheet" href="../../Shared/sty/standard.css"/>
	<script defer src="../../Shared/js/toc.js"></script>
	
	<title>Count characters in CotEditor on Mac</title>
</head>

<body>
<a name="howto_count_characters"></a>

<h1>Count characters in CotEditor on Mac</h1>

<p>CotEditor can count the characters in your document live while you edit.</p>


<section>
<h2>Simply count characters</h2>

<p>CotEditor can show the character count in both the status bar and the Document inspector.</p>

<p>The standard character count counts each grapheme cluster, defined as an “extended grapheme cluster” in Unicode. A grapheme cluster is a sequence of one or more Unicode code points treated as a single unit for human. For example, whereas a normal character, such as A, is naturally counted as one character, an emoji consisting of multiple Unicode code points, such as 1️⃣ (<code>U+0031</code> <code>U+FE0F</code> <code>U+20E3</code>), is also counted as one character.</p>
</section>


<section>
<h2>Count characters using advanced options</h2>
<ol>
	<li><p>In the CotEditor app <img class="appicon" srcset="../../Shared/gfx/icon_32x32@2x.png 2x" alt=""/> on your Mac, open a document.</p></li>
	<li><p>Choose Text &gt; Advanced Character Count.</p></li>
	<li><p>Select options how to count characters.</p></li>
	<li><p>Click Start.</p>
		
		<p>To stop counting, choose Text &gt; Stop Advanced Character Count.</p></li>
</ol>



<figure>
	<img srcset="../gfx/advancedCount@2x.png 2x" alt="Screenshot of the advanced character count option dialog"/>
</figure>

<p>With Advanced Character Count, you can count characters in various ways. When you start an advanced character count, a counter appears at the bottom of the editor. The counter updates live according to the options you set in the Advanced Character Count dialog. If part of the text is selected, the counter shows the number of selected characters; otherwise, it shows the total number of characters in the document. You can drag the counter to reposition it.</p>

<p>The options apply across the application. When you change the settings in one editor, the same settings apply to other editors as well.</p>

<p><em class="note">Note:</em> The advanced character count may affect the processing performance depending on the combination of options, especially in large documents.</p>
</section>


<section id="cf">
<h2>See also</h2>
<ul>
	<li><a href="howto_inspect_fileinfo.html">Get information about a document in CotEditor on Mac</a></li>
</ul>
</section>

</body>
</html>
